<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增农事记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncWorkLog-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">农事id：</label>
				<div class="col-sm-8">
					<input id="workId" name="workId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">标准id：</label>
				<div class="col-sm-8">
					<input id="standardId" name="standardId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">阶段id：</label>
				<div class="col-sm-8">
					<input id="stageId" name="stageId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">农事名称：</label>
				<div class="col-sm-8">
					<input id="workName" name="workName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">农事类型 1:栽培 2：农资：</label>
				<div class="col-sm-8">
					<input id="workType" name="workType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">循环周期(天)：</label>
				<div class="col-sm-8">
					<input id="cycleDays" name="cycleDays" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第几天开始：</label>
				<div class="col-sm-8">
					<input id="workStart" name="workStart" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第几天结束：</label>
				<div class="col-sm-8">
					<input id="workEnd" name="workEnd" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">动态调整 0: 不是 1：是：</label>
				<div class="col-sm-8">
					<input id="isDynamic" name="isDynamic" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">农资名称：</label>
				<div class="col-sm-8">
					<input id="inputCn" name="inputCn" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">农资：</label>
				<div class="col-sm-8">
					<input id="input" name="input" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">数量/亩：</label>
				<div class="col-sm-8">
					<input id="inputCount" name="inputCount" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">单位：</label>
				<div class="col-sm-8">
					<input id="inputUnit" name="inputUnit" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工作内容：</label>
				<div class="col-sm-8">
					<input id="workDetail" name="workDetail" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建者：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncWorkLog"
		$("#form-ncWorkLog-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ncWorkLog-add').serialize());
	        }
	    }
	</script>
</body>
</html>
